import request from "../utils/request.js";

export function getMenuList(data) {
  return request({
    url: "/api/menu/list",
    method: "get",
    data,
  });
}

export function getMenuMethod(data) {
  return request({
    url: "/api/menu/method",
    method: "get",
    data,
  });
}

export function addSelectedList(data) {
  return request({
    url: "/api/menu/add",
    method: "post",
    data,
  });
}

// 评价 start
export function updateComment(data) {
  return request({
    url: "/api/menu/comment",
    method: "put",
    data,
  });
}

export function updateRate(data) {
  return request({
    url: "/api/menu/rate",
    method: "put",
    data,
  });
}
// 评价 end

export function getOrderList(data) {
  return request({
    url: "/api/menu/order/list",
    method: "get",
    data,
  });
}

export function addOrderList(data) {
  return request({
    url: "/api/menu/order/create",
    method: "post",
    data,
  });
}
